// @algorithm @lc id=371 lang=cpp 
// @title sum-of-two-integers


// @test(1,2)=3
// @test(2,3)=5
class Solution {
public:
    int getSum(int a, int b) {
        while(b){
            auto c = uint32_t(a&b)<<1;
            a ^= b;
            b = c;
        }
        return a;
    }
};